<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    let str = 'abcdef';

    /* 把字符串里面的 e 字符取出来？ */
    /*  let a = str[0];
     let e = str[4];
     console.log(a, e); */

    /* 字符串的解构和数组一样 */
    // let [a, b, c, d, e, f] = str;
    // console.log(a, b, c, d, e, f);
    let [, , , d] = str;
    console.log(d);



</script>

</html>